package com.unbook.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unbook.entity.BookType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IBookTypeMapper extends BaseMapper<BookType> {
    @Select("select * from book_type bt, b_bt bbt where bt.b_t_id = bbt.b_t_id and bbt.b_id = #{bId}")
    List<BookType> findByBookId(Integer bId);
}
